import Vue from "vue";
import App from "./App.vue";

Vue.config.productionTip = false;

//假设当前的角色
const nowRole = "fudao";

//Vue.directive()可以定义一个自定义指令
Vue.directive("role", (el, binding) => {
  // console.log(el, binding);
  if (!binding.value.includes(nowRole)) {
    el.style.display = "none";
    // el.remove();
    // el.parentNode.removeChild(el);
  }
});


new Vue({
  render: (h) => h(App),
}).$mount("#app");
